﻿using System.ComponentModel;
using System.Windows.Input;

namespace Vtron.HipcConfigurationTools
{
    public class DecodeViewModel : INotifyPropertyChanged
    {
        private ICommand searchVersionCommand;
        private ICommand searchNetConfigCommand;
        private ICommand sumbitNetConfigCommand;
        private ICommand exportLogCommand;
        private ICommand rebootCommand;

        public DecodeViewModel()
        {
            searchVersionCommand = new DelegateCommand<string>(SearchVersion);
            searchNetConfigCommand = new DelegateCommand<string>(SearchNetConfig);
            sumbitNetConfigCommand = new DelegateCommand<string>(SumbitNetConfig);
            exportLogCommand = new DelegateCommand<string>(ExportLog);
            rebootCommand = new DelegateCommand<string>(Reboot);
        }

        public ICommand SearchVersionCommand { get { return searchVersionCommand; } }
        public ICommand SearchNetConfigCommand { get { return searchNetConfigCommand; } }
        public ICommand SumbitNetConfigCommand { get { return sumbitNetConfigCommand; } }
        public ICommand ExportLogCommand { get { return sumbitNetConfigCommand; } }
        public ICommand RebootCommand { get { return sumbitNetConfigCommand; } }

        private void SearchVersion(string obj)
        {
            //TODO:
        }

        private void SearchNetConfig(string obj)
        {
            //TODO:
        }

        private void SumbitNetConfig(string obj)
        {
            //TODO:
        }

        private void ExportLog(string obj)
        {
            //TODO:
        }

        private void Reboot(string obj)
        {
            //TODO:
        }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
